package com.sg.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author shiguang.ma
 */

@Controller
@RequestMapping("/user")
public class UserController {
	
	@RequestMapping("/register")
	public String register() {
		return "user/register";
	}
	
	@RequestMapping(method = RequestMethod.POST)
	public ModelAndView createUser() {
		ModelAndView mv = new ModelAndView("user/createSuccess");
		
		return mv;
	}
	
}
